@extends('Admin.layout.layout')
@section('title')
    <title>申请救助人添加</title>    
@show
@section('con')
<div class="row"> 
   <div class="col-lg-12"> 
    <h1 class="page-header">添加申请人信息</h1> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 
  <div class="row"> 
   <div class="col-lg-12"> 
    <div class="panel panel-default"> 
     <div class="panel-heading">
      
     </div> 
     <div class="row">
      
     </div> 


     <div class="panel-body"> 
      <div class="row col-xd-4 col-xd-offset-4"> 
       <div class="col-md-6 col-md-offset-3">
      
       <div class="col-md-6 col-md-offset-3">
      <div class="row col-xd-4 col-xd-offset-4">

       <div class="col-md-6 col-md-offset-3">
        @if (count($errors) > 0)
          <div class="alert alert-danger">
              <ul>
                  @foreach ($errors->all() as $error)
                      <li>{{ $error }}</li>
                  @endforeach
              </ul>
          </div>
      @endif

      
       <div class="col-md-12 col-md-offset-1">      
        <form role="form" action="{{url('/admin/askuser/insert')}}" method="post">
        <label>选择申请类型</label>  
         <select class="form-control" name="goods">
          
          @foreach($cates as $k =>$v)
          <option value="{{$v->tname}}">{{$v->tname}}</option>
          @endforeach
        </select>
        <br>
        <select class="form-control" name="type">
          <option selected >申请性质</option>
         
          <option value="0">个人</option>
          <option value="1">单位</option>
         
        </select>
        <br>
        <div class="form-group"> 
          <label>申请人或单位名称</label> 
          <input class="form-control" name="name" /> 
        </div class="row col-md-6 col-offset-3"> 
        <div class="form-group"> 
          <label>申请数量</label> 
          <input class="form-control" name="num" /> 
        </div class="row col-md-6 col-offset-3"> 
        <div class="form-group"> 
          <label>申请人或单位地址</label> 
          <input class="form-control" name="address" /> 
        </div class="row col-md-6 col-offset-3">
        <div class="form-group"> 
          <label>联系人</label> 
          <input class="form-control" name="uname" /> 
        </div class="row col-md-6 col-offset-3">
        <div class="form-group"> 
          <label>联系电话</label> 
          <input class="form-control" name="phone" /> 
        </div class="row col-md-6 col-offset-3">
        <div class="form-group"> 
          <label>申请原因简介</label> 
          <textarea name="words" id="" cols="63" rows="10" ></textarea>
        </div class="row col-md-6 col-offset-3">
        <button class="btn btn-success" type="submit">确定</button>
         {{csrf_field()}}
         
        </form>
         <div class="form-group"> 
         </div>  
       <!-- /.col-lg-6 (nested) --> 
       </div>
       </div>
      </div> 
      <!-- /.row (nested) --> 
     </div> 
     <!-- /.panel-body --> 
    </div> 
    <!-- /.panel --> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 

           


@endsection
